﻿using SkiaSharp;

namespace Agile.Infra.Code;

public interface IORCodeService
{
    /// <summary>
    /// 返回 SKBitmap 图片对象
    /// </summary>
    /// <param name="content"></param>
    /// <param name="width"></param>
    /// <param name="height"></param>
    /// <returns></returns>
    SKBitmap GenerateQRCodeAsImage(string content, int width = 300, int height = 300);

    /// <summary>
    /// 返回字节数组（PNG格式）
    /// </summary>
    /// <param name="content"></param>
    /// <returns></returns>
    byte[] GenerateQRCodeAsBytes(string content); 
}
